package com.hongdee.insurance.commission.dao.impl;

import com.hongdee.base.basedao.impl.BaseDaoImpl;
import com.hongdee.insurance.commission.dao.ITCommissionDao;
import com.hongdee.insurance.commission.entity.TInsuranceCommission;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Mr. Xu on 2017/4/25.
 */
@Service
public class TCommissionDaoimpl extends BaseDaoImpl implements ITCommissionDao {
    @Override
    public TInsuranceCommission getInsuranceCommissionById(String id) throws Exception {
        String hql="from TInsuranceCommission where id=:id";
        Map map=new HashMap<>();
        map.put("id",id);
        return (TInsuranceCommission) this.getHibernateDao().findEntityByHqlWithParams(hql,map);
    }
}